<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>
<?php use_stylesheet('uploadfile.css') ?>
<?php use_javascript('jquery.uploadfile.min.js') ?>
<?php use_javascript('codigo2.js') ?>

<form action="<?php echo url_for('documentos/'.($form->getObject()->isNew() ? 'create' : 'update').(!$form->getObject()->isNew() ? '?beca_id='.$form->getObject()->getBecaId().'&usuario_id='.$form->getObject()->getUsuarioId().'&tipo_documento_id='.$form->getObject()->getTipoDocumentoId() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?> accept-charset="utf-8">
<?php if (!$form->getObject()->isNew()): ?>
<input type="hidden" name="sf_method" value="put" />
<?php endif; ?>     
    <table>
        <thead>
          <tr>
              <th colspan="2"><h2 id="titulo_form"><?php echo $title?></h2></th>
          </tr>
          <tr>
              <th colspan="2"><h1 id="titulo_form"><?php echo $subtitle?></h1></th>
          </tr>          
      </thead>
      <tbody>
        <tr>
        <td><?php echo $form ?></td>        
        </tr>        
      </tbody>
      <tfoot>
          <tr>              
              <td colspan="2" align =right><input type="submit" value="Adjuntar" /></td>
          </tr>
          <tr>
              <th colspan="2"><h5 id="titulo_form"><?php echo $informacion?></h5></th>
          </tr>
      </tfoot>
      </table>
</form>
